package com.pig4cloud.pigx.contract.api.v1.websocket.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.pig4cloud.pigx.common.customize.utils.serializer.BigDecimalToPlainStringSerializer;
import com.pig4cloud.pigx.contract.annotation.SetScaleMainCurrency;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 币对最新价
 *
 * @since 2023/3/9 17:27
 */
@Data
public class OpenApiSymbolLastPriceVOV1 implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 币对名称
     */
    private String symbol;

    /**
     * 价格
     */
    @JsonSerialize(using = BigDecimalToPlainStringSerializer.class)
    @SetScaleMainCurrency
    private BigDecimal price;
}
